package com.mnb.base.mapper;

import com.mnb.base.entity.SysRole;
import com.mnb.common.utils.R;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Long roleId);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> getList(SysRole sysRole);

    void deleteRoleByIds(Long[] roleIds);

    List<SysRole> selectRolePermissionByUserId(@Param("userId") Object userId);
}